package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * AmendmentsFertilizers generated by hbm2java
 */
@Entity
@Table(name="amendments_fertilizers"
    ,catalog="madr_bd10"
)
public class AmendmentsFertilizers  implements java.io.Serializable {


     private Integer idAmeFer;
     private String nameAmeFer;
     private Boolean statusAmeFer;
     private Set amendmentsFertilizationses = new HashSet(0);

    public AmendmentsFertilizers() {
    }

    public AmendmentsFertilizers(String nameAmeFer, Boolean statusAmeFer, Set amendmentsFertilizationses) {
       this.nameAmeFer = nameAmeFer;
       this.statusAmeFer = statusAmeFer;
       this.amendmentsFertilizationses = amendmentsFertilizationses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_ame_fer", unique=true, nullable=false)
    public Integer getIdAmeFer() {
        return this.idAmeFer;
    }
    
    public void setIdAmeFer(Integer idAmeFer) {
        this.idAmeFer = idAmeFer;
    }
    
    @Column(name="name_ame_fer", length=45)
    public String getNameAmeFer() {
        return this.nameAmeFer;
    }
    
    public void setNameAmeFer(String nameAmeFer) {
        this.nameAmeFer = nameAmeFer;
    }
    
    @Column(name="status_ame_fer")
    public Boolean getStatusAmeFer() {
        return this.statusAmeFer;
    }
    
    public void setStatusAmeFer(Boolean statusAmeFer) {
        this.statusAmeFer = statusAmeFer;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="amendmentsFertilizers")
    public Set getAmendmentsFertilizationses() {
        return this.amendmentsFertilizationses;
    }
    
    public void setAmendmentsFertilizationses(Set amendmentsFertilizationses) {
        this.amendmentsFertilizationses = amendmentsFertilizationses;
    }




}


